import Vue from "vue"
const mixin = {
  data () {
    return {
      bbb: 1
    }
  },
  computed: {
    domainInfo () {
      return this.$store.state.domainInfo
    },
    colorInfo () {
      return this.domainInfo.colorInfo
    },
    aaaa () {
      return 111;
    }
  },
  methods: {
    /*
        复制文本内容
    */
    copyText (text) {
      var el = document.createElement("textarea");
      el.value = text;
      el.setAttribute("readonly", "");
      el.style = {
        position: "absolute",
        left: "-9990009px"
      };
      document.body.appendChild(el);
      el.select();
      document.execCommand("copy");
      document.body.removeChild(el);
      alert("复制成功")
    }
  },
  mounted () {

  },
}
Vue.mixin(mixin);
